// component/statusBar.js
const app = getApp();
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    isHome: {
      type: Boolean,
      value: false
    },
    title: {
      type: String,
      value: '物业管理'
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    statusBarHeight: 0
  },
  lifetimes: {
    attached() {
      const statusBarHeight = wx.getSystemInfoSync().statusBarHeight;
      this.setData({
        statusBarHeight
      })
    }
  },
  options: {

  },
  /**
   * 组件的方法列表
   */
  methods: {
    navigateTo() {
      wx.navigateBack({
        delta: 0,
      })
    }
  },
})